package com.riku.security.mapper;

import com.riku.security.model.SeService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SeServiceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SeService record);

    int insertSelective(SeService record);

    SeService selectByPrimaryKey(Long id);

    int countByServiceCode(String serviceCode);

    List<SeService> selectByName(String serviceName);

    List<SeService> selectServiceByUserId(@Param("serviceName") String serviceName,
                                         @Param("userId") String userId);

    int updateByPrimaryKeySelective(SeService record);

    int updateByPrimaryKey(SeService record);
}